{% include "rpgEngine/head.html" %}
<script language="JavaScript" src="{{ MEDIA_URL }}shared/team.js"></script>
<div id="primarycontent">
	<div class="teamPageSelect">
		{% autoescape off %}
		{{ pageSelect }}
		{% endautoescape %}
	</div>
	<h1>Add a Player</h1>
	</br>
	</br>
	<form id="formAddPlayer" action="/team/addPlayer/" method="post">
		<table style="border:0px;margin-left:auto;margin-right:auto;">
		<tr><td style="text-align:right;">{{ form.username.label_tag }} :</td><td>{{ form.username }}</td>
		    <td style="text-align:right;">{{ form.password.label_tag }} :</td><td>{{ form.password }}</td>
		</tr>
		<tr><td style="text-align:right;">{{ form.firstname.label_tag }} :</td><td>{{ form.firstname }}</td>
		    <td style="text-align:right;">{{ form.lastname.label_tag }} :</td><td>{{ form.lastname }}</td>
		</tr>
		<tr><td td colspan="4" style="text-align:right;"><input type="submit" id="addPlayer" name="addPlayer" value="Add" alt="Add Player" /></td>
		</tr>
		</table>
	</form>
	{% if isError %}
		<p id="errorMessage">please fill up all fields</p>
	{% endif %}
	{% if isError_alreay_exist %}
		<p id="errorMessage">this username and/or first name - last name combinaison already exist</p>
	{% endif %}
	<br/>

</div>
{% include "rpgEngine/foot.html" %}
